{extend name="AdminPublic/public"}
{block name="admin"}
<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>
            <script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.all.min.js"> </script>
            <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
            <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
        <script type="text/javascript" charset="utf-8" src="/static/ueditor/lang/zh-cn/zh-cn.js"></script>
  <div class="row"> 
   <div class="col-lg-12"> 
    <section class="panel"> 
     <header class="panel-heading"> 
      <span style="font-size:20px;">您的位置 :</span> 
      <span style="color:#65CEA7;">公告管理 > 公告添加</span> 
      <span class="tools pull-right"> <a href="javascript:;" class="fa fa-chevron-down"></a> <a href="javascript:;" class="fa fa-times"></a> </span> 
     </header> 
     <div class="panel-body"> 
      <div class=" form"> 
       <form class="cmxform form-horizontal adminex-form" id="commentForm" method="post" action="/adminnotice/doadd" novalidate="novalidate"> 
        <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2">公告标题</label> 
         <div class="col-lg-10"> 
          <input class=" form-control" id="cname" name="title" minlength="2" type="text" required="" /> 
         </div> 
        </div> 
        <div class="form-group "> 
         <label for="cemail" class="control-label col-lg-2">开始时间</label> 
         <div class="col-lg-10"> 
          <input class="form-control " id="cemail" type="email" name="begintime" required="" placeholder="格式:年-月-日 时:分:秒 例如:2018-06-01 11:11:11"/> 
         </div> 
        </div> 
        <div class="form-group "> 
         <label for="curl" class="control-label col-lg-2">结束时间</label> 
         <div class="col-lg-10"> 
          <input class="form-control " id="curl" type="url" name="endtime" placeholder="格式:年-月-日 时:分:秒 例如:2018-06-01 12:12:12"/> 
         </div> 
        </div> 
        <div class="form-group "> 
         <label for="ccomment" class="control-label col-lg-2">公告内容</label> 
         <div class="col-lg-10">
          <script id="editor" type="text/plain"  name="content" style="width:800px;height:200px;"></script> 
            <script type="text/javascript">
                 //实例化编辑器
                 //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
                 var ue = UE.getEditor('editor');
            </script>
         </div> 
        </div> 
        <div class="form-group"> 
         <div class="col-lg-offset-2 col-lg-10"> 
          <button class="btn btn-primary" type="submit">提交</button> 
          <button class="btn btn-default" type="reset">重置</button> 
         </div> 
        </div> 
       </form> 
      </div> 
     </div> 
    </section> 
   </div> 
  </div>
{/block}